package com.gupt.weekly;

import lombok.SneakyThrows;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

import java.net.InetAddress;

/**
 * @author linzizun
 * @version 1.0
 * @date 2021/04/14 16:06
 */
@SpringBootApplication
@EnableEurekaClient
public class GateWayMain {
    public static void main(String[] args) {
        SpringApplication.run(GateWayMain.class, args);
        out();
    }

    @SneakyThrows
    private static void out() {
        System.err.printf("swagger访问地址：http://%s:%s/swagger-ui.html%n",
                InetAddress.getLocalHost().getHostAddress(), 7003);
    }
}
